package com.uoko.plugins.es.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * <p>elastics配置</p>
 *
 * @author shaohua
 * @date on 2018/5/25.
 * Email:xiaomabenten@gmail.com
 */
@ConfigurationProperties(prefix = "spring.data.elasticsearch")
public class ElasticsProperties {

    /**
     * 名称
     */
    private String clusterName;

    /**
     * 节点
     */
    private String clusterNodes;

    /**
     * 地址
     */
    private String address;

    /**
     * 端口号
     */
    private int port = 9200;

    private String scheme;

    public String getClusterName() {
        return clusterName;
    }

    public void setClusterName(String clusterName) {
        this.clusterName = clusterName;
    }

    public String getClusterNodes() {
        return clusterNodes;
    }

    public void setClusterNodes(String clusterNodes) {
        this.clusterNodes = clusterNodes;
    }

    public int getPort() {
        return port;
    }


    public void setPort(int port) {
        this.port = port;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getScheme() {
        return scheme;
    }

    public void setScheme(String scheme) {
        this.scheme = scheme;
    }
}
